Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate EC support to Rust #9024

Merged
merged 1 commit into from
Jun 23, 2023
Merged

Migrate EC support to Rust #9024

merged 1 commit into from
Jun 23, 2023

Conversation

alex
Copy link
Member

@alex alex commented Jun 4, 2023

No description provided.

@alex
Copy link
Member Author

alex commented Jun 18, 2023

Note to self: Do we have a test that verifies that we always serialize in named curve form?

@alex alex marked this pull request as ready for review June 21, 2023 13:12
src/rust/src/backend/ec.rs Show resolved Hide resolved
let valid = verifier.verify(data, signature).unwrap_or(false);
// TODO: Empty the error stack. BoringSSL leaves one in the event of
// signature validation failure. Upstream to rust-openssl?
openssl::error::ErrorStack::get();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we annotate this for just boring?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, but also, what do you think about upstreaming?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should upstream. Without doing so every caller needs to know that they need this conditional or else their error stack gets polluted and who knows what their error handling does.

@reaperhulk reaperhulk merged commit f38eb4a into pyca:main Jun 23, 2023
59 checks passed
@alex alex deleted the rust-ec branch June 23, 2023 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants